from flask import Flask
from flask import Blueprint
from flask_restful import Resource, Api

app = Flask(__name__)
user_bp = Blueprint('user',__name__)
api = Api(user_bp)


class Index(Resource):
    def get(self):
        return {'msg': 'index'}

api.add_resource(Index, '/')
# @user_bp.route('/')
# def index():
#     return 'index'

app.register_blueprint(user_bp, url_prefix='/user')


if __name__ == "__main__":
    app.run(debug=True,host='0.0.0.0', port=5000)
